$(function(){  
    // 配置jqGrid组件  
    $("#gridTable").jqGrid({  
        url: "get_all_workrequest",  
        datatype: "json",  
        mtype: "GET",  
        height: 350,  
        autowidth: true,  
        colModel: [  
              {name:"id",index:"id",label:"ID",width:40},    
              {name:"lastName",index:"lastName",label:"Last Name",width:80,sortable:false},  
              {name:"firstName",index:"firstName",label:"First Name",width:80,sortable:false},  
              {name:"email",index:"email",label:"E-mail",width:160,sortable:false},  
              {name:"telNo",index:"telNo",label:"Tel No",width:120,sortable:false}  
        ],  
        viewrecords: true,  
        rowNum: 15,  
        rowList: [15,50,100],  
        prmNames: {search: "search"},   //(1)  
        jsonReader: {  
            root:"gridModel",       // (2)  
            records: "record",      // (3)  
            repeatitems : false     // (4)  
        },  
        pager: "#gridPager",  
        caption: "联系人列表",  
        hidegrid: false  
    });  
});  